package org.ahuanlien.crm.service.impl;

import org.ahuanlien.crm.query.ClaimChartQueryObject;
import org.ahuanlien.crm.query.SalesChartQueryObject;
import org.ahuanlien.crm.service.IBillRecordService;
import org.ahuanlien.crm.service.IChartService;
import org.ahuanlien.crm.service.IClientRepaymentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ChartServiceImpl implements IChartService {

    @Autowired
    IClientRepaymentInfoService clientRepaymentInfoService;
    @Autowired
    IBillRecordService billRecordService;

    public List<Map<String, BigDecimal>> queryByGroupType(ClaimChartQueryObject qo) {
        return clientRepaymentInfoService.queryByGroupType(qo);
    }

    public List<Map<String, BigDecimal>> queryByGroupType(SalesChartQueryObject qo) {
        return billRecordService.queryByGroupType(qo);
    }
}
